package cn.tedu.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class User {

    @Autowired @Qualifier("foo3")
    Foo foo;

    private String name;

    public User(){
        System.out.println("User的构造方法");
    }

    public void say(@Qualifier("foo1") Foo foo){
        System.out.println("User在说话");
    }

}
